package com.nf.service;

import com.nf.entity.ResponseData;
import com.nf.entity.WeatherMessage;
import com.nf.entity.WeatherOtherInfo;

public class WeatherServiceImpl implements WeatherService {
    public WeatherMessage getMessage() {

        WeatherOtherInfo yesterday=new WeatherOtherInfo();
        yesterday.setDate("28日星期五");
        yesterday.setType("多云");

        WeatherOtherInfo w=new WeatherOtherInfo();
        w.setDate("30号晚上星期日");
        w.setType("晴天");

        WeatherOtherInfo w1=new WeatherOtherInfo();
        w1.setDate("31号晚上星期一");
        w1.setType("晴天");


        ResponseData data=new ResponseData();
        data.setShidu("72%");
        data.setPm10(42);
        data.setPm10(68);
        data.setQuality("良");
        data.setWendu("27");
        data.setWendu("极少数敏感人群应减少活动");



        data.setYesterday(yesterday);
        data.getForecast().add(w);
        data.getForecast().add(w1);

        WeatherMessage message=new WeatherMessage();
        message.setMessage("程序员你好，恭喜你成功了");
        message.setStatus(200);
        message.setData(data);

        message.setTips("注意，当前API 仅仅是试用");
        message.setCount(2);


        return message;
    }
}
